package com.smart.community.common.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smart.community.common.entity.SysUser;

/**
    * @author : 子未语
    * @date : 2024/1/14 10:05
    */

public interface SysUserMapper extends BaseMapper<SysUser> {

    default SysUser selectByUsername(String username){
        QueryWrapper<SysUser> qw = new QueryWrapper<>();
        qw.eq(SysUser.COL_LOGIN_NAME, username);
        return this.selectOne(qw);
    }
}